package com.darwin.darwinIsometric.pathfinding
{
	/**
	 *	 地图信息描述节点
	 * @author Roland
	 * 
	 */
	public class ANode
	{
		public var x:int;
		public var y:int;
		public var f:Number;
		public var g:Number;
		public var h:Number;
		public var parent:ANode;
		//public var costMultiplier:Number = 1.0;
		public var version:int = 1;
		public var links:Array;
		public var marks:Array;//格子标记,额外参数,寻路本身用不到
		internal var _walkable:int = 1;
		internal var changed:Boolean = true;
		public var tier:Number = 0;
		//public var index:int;
		public function ANode(x:int, y:int){
			this.x = x;
			this.y = y;
		}
		
		internal function get walkable():int
		{
//			return 1;
			return _walkable;
		}
		
		internal function set walkable(value:int):void
		{
			_walkable = value;
		}
	}
}